//商品管理
import Layout from '@/views/layout/Layout'
import Three from '../../../views/layout/Three'

const goods = {
  path: '/goods',
  name: 'goods',
  component: Layout,
  key: 'goods',
  redirect: '/goods/earlyEduBox/teachAids',
  meta: {
    title: '商品'
  },
  children: [
    {
      path:'goodsManage',
      name:'goodsManage',
      key: 'goodsManage',
      meta: {
        title: '商品管理'
      },
      alwaysShow:true,
      redirect: '/goods/goodsManage/commonGoods',
      component: Three,
      children:[
        {
          path: 'commonGoods',
          name: 'commonGoods',
          key: 'commonGoods',
          component: () => import('@/views/goods/goodsManage/commonGoods/list'),
          meta: {
            title: '商城商品管理',
          }
        },
        {
          path: 'commonGoodsAdd',
          name: 'commonGoodsAdd',
          key: 'commonGoodsAdd',
          hidden:true,
          component: () => import('@/views/goods/goodsManage/commonGoods/add'),
          meta: {
            title: '商城商品添加',
          }
        },
        {
          path: 'commonGoodsEdit',
          name: 'commonGoodsEdit',
          key: 'commonGoodsEdit',
          hidden:true,
          component: () => import('@/views/goods/goodsManage/commonGoods/add'),
          meta: {
            title: '商城商品编辑',
          }
        },
        {
          path: 'pointGoods',
          name: 'pointGoods',
          key: 'pointGoods',
          component: () => import('@/views/goods/goodsManage/pointGoods/list'),
          meta: {
            title: '积分商品管理',
          }
        },
        {
          path: 'pointGoodsAdd',
          name: 'pointGoodsAdd',
          key: 'pointGoodsAdd',
          hidden:true,
          component: () => import('@/views/goods/goodsManage/pointGoods/add'),
          meta: {
            title: '积分商品添加',
          }
        },
        {
          path: 'pointGoodsEdit',
          name: 'pointGoodsEdit',
          key: 'pointGoodsEdit',
          hidden:true,
          component: () => import('@/views/goods/goodsManage/pointGoods/add'),
          meta: {
            title: '积分商品编辑',
          }
        },
      ]
    },
    {
      path: 'earlyEduBox',
      name: 'earlyEduBox',
      key: 'earlyEduBox',
      meta: {
        title: '早教盒子'
      },
      redirect: '/goods/earlyEduBox/teachAids',
      component: Three,
      children: [
        {
          path: 'teachAids',
          name: 'teachAids',
          key: 'teachAids',
          component: () => import('@/views/goods/teachAids/list'),
          meta: {
            title: '教具',
          }
        }, {
          path: 'teachAidsAdd',
          name: 'teachAidsAdd',
          key: 'teachAidsAdd',
          hidden: true,
          component: () => import('@/views/goods/teachAids/add'),
          meta: {
            title: '教具添加',
          }
        }, {
          path: 'sysBox',
          name: 'sysBox',
          key: 'sysBox',
          component: () => import('@/views/goods/sysBox/list'),
          meta: {
            productTypeId: 1,
            title: '系统课盒子',
          }
        }, {
          path: 'sysBoxEdit',
          name: 'sysBoxEdit',
          key: 'sysBoxEdit',
          component: () => import('@/views/goods/sysBox/edit'),
          meta: {
            title: '系统课盒子编辑',
          },
          hidden: true
        }, {
          path: 'seeTools',
          name: 'sysBoxSeeTools',
          key: 'sysBoxSeeTools',
          component: () => import('@/views/goods/sysBox/teachTools/list'),
          meta: {
            title: '查看教具',
          },
          hidden: true,
        },
        /*{
          path: 'sysBoxStore',
          name: 'sysBoxStore',
          key: 'sysBoxStore',
          component: () => import('@/views/goods/sysBoxStore/list'),
          meta: {
            title: '系统课盒子库存',
          }
        }, */
        {
          path: 'experienceBox',
          name: 'experienceBox',
          key: 'experienceBox',
          component: () => import('@/views/goods/sysBox/list'),
          meta: {
            productTypeId: 0,
            title: '体验课盒子',
          },
        }
      ],
    }
  ]
}

export default goods
